<?php

namespace Entity;
use\Abstraction;

class Memorypqp extends Abstraction\PqpAbstract
{
    protected function doConstruct()
    {
        $this->name = 'memory';
        
        $this->struct = array();
        $this->struct[0] = '<tr class="%s">';
        $this->struct[1] = '<td class="%s">';
        $this->struct[2] = '%s</td>';
        $this->struct[3] = '<td class="%s">';
        $this->struct[4] = '<div><pre>%s</pre>';
        $this->struct[5] = '<em>%s</em>&nbsp;=&gt;&nbsp;';
        $this->struct[6] = '%s</div></td></tr>';
    }
    
    protected function translate($data, $alt)
    {
        $sizer = new Sizer;
        return array( 
                        'log-'.$this->name, 'type', $this->name, $alt, $sizer($data['data']), ucfirst($data['dataType']), $data['name'],
                      );
    }
}
